<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/22
 * Time: 19:17
 */
$http = new swoole_http_server('0.0.0.0', 8812);

$http->set([
    'enable_static_handler' => true,
    'document_root' => ''
]);

$http->on('request', function ($request, $response){
    $response->end("<h1>httpServer</h1>");
});

$http->start();